<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录界面</title>
  <style>
    body {
      background: linear-gradient(to right, #8ecae6, #e7d0eb, #f9a0c0, #fad29a, #fde68a);
      font-family: 'Arial', sans-serif;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
      color: white;
    }

    .login-container {
      position: relative;
      padding: 2rem;
      border-radius: 1rem;
      max-width: 300px;
      width: 100%;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
      background: rgba(255, 255, 255, 0.1);
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .login-form label {
      font-size: 1rem;
    }

    .login-form input {
      padding: 0.5rem;
      border: none;
      border-radius: 0.5rem;
      background: rgba(255, 255, 255, 0.2);
      color: white;
    }

    .login-form button {
      padding: 0.5rem;
      background: #ffffff;
      color: black;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: all 0.3s ease-in-out;
    }

    .login-form button:hover {
      background: #ebebeb;
    }
  </style>
</head>

<body>
<div class="login-container">
  <form class="login-form" action="/gym/login" method="post">
    <label for="username">账号</label>
    <input type="text" id="username" name="username" placeholder="请输入账号" required>

    <label for="password">密码</label>
    <input type="password" id="password" name="password" placeholder="请输入密码" required>

    <button type="submit">登录</button>
    <a href="register.jsp">注册</a>
  </form>
</div>
</body>

</html>
